<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title>{$meta_title}-狂雨小说CMS</title>
        <meta name="renderer" content="webkit">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
        <link rel="stylesheet" href="__ADMIN__/css/admin.css">
    </head>
    <body>
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <form class="layui-form" action="{:url('renew')}">
                    <div class="layui-card">
                        <div class="layui-card-body">
                            <div style="padding-bottom: 10px;">
                                <blockquote class="layui-elem-quote layui-quote-nm">
                                    <p>榜单资源来自于互联网，并非本站榜单</p>
                                    </br>
                                </blockquote>
                            </div>
                            <table class="layui-table">
                                <colgroup>
                                    <col width="80">
                                    <col width="100">
                                    <col width="120">
                                    <col width="120">
                                    <col width="300">
                                    <col width="200">
                                    <col width="200">
                                    <col width="100">
                                    <col width="80">
                                    <col width="100">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>榜单名称</th>
                                        <th>所属站点</th>
                                        <th>更新周期</th>
                                        <th>说明</th>
                                        <th>添加时间</th>
                                        <th>更新时间</th>
                                        <th>榜单详情</th>
                                        <th>状态</th>
                                        <th><div align="center">操作</div></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {notempty name="list"}
                                    {volist name="list" id="vo"}
                                    <tr>
                                        <td>{$vo.id}</td>
                                        <td>{$vo.name|default=""}</td>
                                        <td>{$vo.site|default=""}</td>
                                        <td>{$vo.cycle|default=""}</td>
                                        <td>{$vo.explain|default=""}</td>
                                        <td>{$vo.add_time|time_format="Y-m-d H:i:s"}</td>
                                        <td>{$vo.update_time|time_format="Y-m-d H:i:s"}</td>
                                        <td>
                                            <a onclick="admin_show('查看榜单详情','{:url('details')}?id={$vo.id}',0,0,1)" class="layui-btn layui-btn-normal layui-btn-xs" href="javascript:;"><i class="layui-icon layui-icon-tips"></i>查看详情</a>
                                        </td>
                                        <td>{$vo.status|default="未定义"}</td>
                                        <td>暂无</td>

                                    </tr>
                                    {/volist}
                                    {else/}
                                        <td colspan="12"> aOh! 暂时还没有内容! </td>
                                    {/notempty}
                                </tbody>
                            </table>

                            <div class="layui-col-md4">
                                 <button class="layui-btn layui-btn-danger" type="button" onclick="admin_del(this,'{:url('del')}?renew_time=all')"><i class="layui-icon layui-icon-delete"></i>清空日志</button>
                            </div>
                            <table class="layui-table" lay-even lay-skin="nob">
                                <colgroup>
                                    <col width="160">
                                    <col width="160">
                                    <col width="120">
                                    <col width="200">
                                    <col width="200">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <th>更新榜数</th>
                                        <th>开始时间</th>
                                        <th>完成时间</th>
                                        <th>耗时</th>
                                        <th><div align="center">操作</div></th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {notempty name="records"}
                                    {volist name="records" id="vo"}
                                    <tr>
                                        <td>{$vo.total_rank|default="0"}</td>
                                        <td>{$vo.renew_time|time_format="Y-m-d H:i:s"}</td>
                                        <td>{$vo.finish_time|time_format="Y-m-d H:i:s"}</td>
                                        <td>{$vo.total_time|default=""}</td>
                                        <td align="center">
                                            <a onclick="admin_show('查看日志','{:url('records')}?renew_time={$vo.renew_time}',0,0,1)" class="layui-btn layui-btn-normal layui-btn-xs" href="javascript:;"><i class="layui-icon layui-icon-tips"></i>查看日志</a>
                                            <a class="layui-btn layui-btn-danger layui-btn-xs" onclick="admin_del(this,'{:url('del')}?renew_time={$vo.renew_time}')"><i class="layui-icon layui-icon-delete"></i>删除日志</a>
                                        </td>
                                    </tr>
                                    {/volist}
                                    {else/}
                                        <td colspan="12"> aOh! 暂时还没有内容! </td>
                                    {/notempty}
                                </tbody>
                            </table>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="__STATIC__/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="__ADMIN__/lib/layui/layui.js"></script>
    <script type="text/javascript" src="__ADMIN__/js/admin.js"></script>
    </body>
</html>